/*
    created: 2023/4/9
    filename: Main.cpp
    author: 李东霖
    purpose: Bridge模式的演示代码
*/
#include"Bridge.h"
#include<stdlib.h>

int main()
{
    ConcreteImplementorA* pImplA = new ConcreteImplementorA();
    Abstruction* pAbstr1 = new Abstruction(pImplA);
    pAbstr1->Operation();

    ConcreteImplementorB* pImplB = new ConcreteImplementorB();
    Abstruction* pAbstr2 = new Abstruction(pImplB);   
    pAbstr2->Operation();

    delete pAbstr1;
    delete pAbstr2;
    system("pause");
    return 0;
}